.class Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;
.super Ljava/lang/Object;
.source "MergeVideoAndImageActivity.java"

# interfaces
.implements Lcom/esfile/screen/recorder/videos/merge/ui/VideoToolsView$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->E()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;I)V

    return-void
.end method

.method public a(II)V
    .locals 7

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 3
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v2

    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-static {v4}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->d(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Lcom/esfile/screen/recorder/videos/merge/b0;

    move-result-object v4

    invoke-virtual {v4}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v4

    cmp-long v6, v2, v4

    if-nez v6, :cond_0

    sub-int v0, p2, p1

    int-to-long v2, v0

    .line 4
    invoke-virtual {v1, v2, v3}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(J)V

    .line 5
    new-instance v0, Landroid/util/Pair;

    int-to-long v2, p1

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    int-to-long v3, p2

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-direct {v0, v2, v3}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/videos/merge/b0;->a(Landroid/util/Pair;)V

    :cond_1
    sub-int/2addr p2, p1

    int-to-long p1, p2

    .line 6
    invoke-static {p1, p2}, Lcom/esfile/screen/recorder/videos/merge/c0;->a(J)V

    return-void
.end method

.method public onDismiss()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    sget-object v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;->NORMAL:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;)Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$State;

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;Ljava/util/ArrayList;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->e(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Lcom/esfile/screen/recorder/videos/merge/MergeDataAdapter;

    move-result-object v0

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity$a;->a:Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;

    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;->f(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImageActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    return-void
.end method
